package com.code.java.concurrent;

import java.util.ArrayList;
import java.util.List;

/**
 * @author codeDorado
 * @version 1.0
 * @date 2020/8/13 10:34
 */
public class CatchTest {
    public static int tryCatch() {
        int i = 10;
        try {
            return i;
        } finally {
            i += 1;
            return i;
        }
    }

    public static void main(String args[]) {
        List Listlist1 = new ArrayList();
        Listlist1.add(0);
        List Listlist2 = Listlist1;
        System.out.println(Listlist1.get(0) instanceof Integer);
        System.out.println(Listlist2.get(0) instanceof Integer);
    }
}
